Create an Annotation Container

The W3C Web Annotation protocol and model is based on LDP (Linked Data Platform).

Annotations are contained in Annotation Containers.

To create a new container, you POST the relevant JSON to the Annotation Server, with a Slug header to tell the server what name to use for the container.

Also required:

Content-Type: application/ld+json;
Accept: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"

Example

POST /annotation/w3c/ HTTP/1.1
Content-Type: application/ld+json;
Accept: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
Slug: my-container
Host: localhost:8080
Connection: close
User-Agent: Paw/3.1.5 (Macintosh; OS X/10.13.4) GCDHTTPRequest
Content-Length: 174
{
"@context": ["http://www.w3.org/ns/anno.jsonld", "http://www.w3.org/ns/ldp.jsonld"],
"type": ["BasicContainer", "AnnotationCollection"],
"label": "A Container for Web Annotations"
}